/*
 * @Author: liu.lin liu.lin@hzleaper.com
 * @Date: 2023-11-15 15:21:30
 * @LastEditors: liu.lin liu.lin@hzleaper.com
 * @LastEditTime: 2023-11-24 17:12:02
 * @FilePath: \aoi_link_frontend\src\page\line-yield-analyse\component\Echart\options.tsx
 * @Description:图表配置数据
 */

const options = {
  legend: {
    type: 'scroll' // 启用滚动功能
  },
  tooltip: {
    trigger: 'axis',
    axisPointer: {
      type: 'shadow', // 添加阴影
      shadowStyle: {
        color: 'rgba(0, 0, 0, 0.2)' // 设置阴影颜色为深色
      }
    }
  },
  dataset: {
    source: [
      ['date', '2023/11/13', '2023/11/14', '2023/11/15', '2023/11/16', '2023/11/17', '2023/11/18', '2023/11/19'],
      ['一厂_一线_偏贴后_产量', 500, 1582, 1863, 1623, 1637, 1367, 1245, 1534],
      ['一厂_一线_pol_产量', 1583, 1896, 1345, 1383, 1335, 1334, 1356],
      ['一厂_一线_产线_产量', 1524, 1367, 1795, 1864, 167, 1227, 1567],
      ['一厂_二线_偏贴后_产量', 1583, 1896, 1345, 1383, 1335, 1334, 1356],
      ['一厂_二线_pol_产量', 1524, 1367, 1795, 1864, 167, 1227, 1567],
      ['一厂_二线_产线_产量', 500, 1582, 1863, 1623, 1637, 1367, 1245, 1534],
      ['一厂_一线_偏贴后_良率', 98, 86, 89.5, 86.4, 85, 96, 95],
      ['一厂_一线_pol_良率', 88, 96, 99.5, 88.4, 95, 86, 94],
      ['一厂_一线_产线_良率', 87, 86, 83, 88, 85, 87, 86],
      ['一厂_二线_偏贴后_良率', 96, 94, 89.5, 86.4, 95, 97, 90],
      ['一厂_二线_pol_良率', 98, 86, 95, 87, 86, 92, 93],
      ['一厂_二线_产线_良率', 93, 94, 93, 97, 95, 89, 86]
    ]
  },
  xAxis: { type: 'category' },
  yAxis: [
    { type: 'value', name: '产量' }, // 左侧y轴
    { type: 'value', name: '良率' } // 右侧y轴
  ],
  grid: {
    left: '0%',
    right: '0%',
    bottom: '0%',
    containLabel: true
  },
  series: [
    // 这里是柱状图系列
    { type: 'bar', barGap: 0, seriesLayoutBy: 'row', yAxisIndex: 0, label: { show: true } },
    { type: 'bar', barGap: 0, seriesLayoutBy: 'row', yAxisIndex: 0, label: { show: true } },
    { type: 'bar', barGap: 0, seriesLayoutBy: 'row', yAxisIndex: 0, label: { show: true } },
    { type: 'bar', barGap: 0, seriesLayoutBy: 'row', yAxisIndex: 0, label: { show: true } },
    { type: 'bar', barGap: 0, seriesLayoutBy: 'row', yAxisIndex: 0, label: { show: true } },
    { type: 'bar', barGap: 0, seriesLayoutBy: 'row', yAxisIndex: 0, label: { show: true } },
    // 这里是折线图系列
    { type: 'line', seriesLayoutBy: 'row', yAxisIndex: 1, label: { show: true } },
    { type: 'line', seriesLayoutBy: 'row', yAxisIndex: 1, label: { show: true } },
    { type: 'line', seriesLayoutBy: 'row', yAxisIndex: 1, label: { show: true } },
    { type: 'line', seriesLayoutBy: 'row', yAxisIndex: 1, label: { show: true } },
    { type: 'line', seriesLayoutBy: 'row', yAxisIndex: 1, label: { show: true } },
    { type: 'line', seriesLayoutBy: 'row', yAxisIndex: 1, label: { show: true } }
    // These series are in the second grid.
  ]
};

export default options;
